﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;
using System.Windows;

namespace _04
{
    public class TestInherit:Control
    {


        public string StuName
        {
            get { return (string)GetValue(StuNameProperty); }
            set { SetValue(StuNameProperty, value); }
        }
        /// <summary>
        /// 继承者 儿子
        /// </summary>
        public static readonly DependencyProperty StuNameProperty =
            LessonDp.StuNameProperty.AddOwner(
                typeof(TestInherit), 
                new FrameworkPropertyMetadata(FrameworkPropertyMetadataOptions.Inherits));


    }
}
